package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/*
* 签到表设计
*/

@Getter @Setter
public class Signin {
    public static final int STATUS_SIGNED_IN = 1; //已签到

    public static final int STATUS_SIGNED_OUT = 0; //已签退

    public static final int STATUS_NOT_SIGNED_OUT = 2; //未签退 (这个常量没有用上)

    private Long id;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date indate; //签到时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outdate; //签退时间

    private int status; //状态

    private Employee employee;

    private Department dept;
}